package cn.kgc.springcloud.web.client;

import cn.kgc.springcloud.web.entity.City;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 课工场
 * @date 2024/7/31
 * @description
 */
@FeignClient("CITYSERVICE")
public interface CityClient {
    @GetMapping("/city/{id}")
   City getOneCity(@PathVariable("id") Integer id);
}
